/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AddSaleLine.java
 *
 * Created on Feb 16, 2009, 10:59:26 AM
 */

package magis;

/**
 *
 * @author Brady
 */
public class AddTradeInLine extends javax.swing.JFrame {

    /** Creates new form AddSaleLine */
    public AddTradeInLine() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        saleCarGroup = new javax.swing.JPanel();
        mileage_lbl = new javax.swing.JLabel();
        listPriceDisplay_lbl = new javax.swing.JLabel();
        model_lbl = new javax.swing.JLabel();
        make_lbl = new javax.swing.JLabel();
        vin_txt = new javax.swing.JTextField();
        color_lbl = new javax.swing.JLabel();
        year_lbl = new javax.swing.JLabel();
        listPrice_lbl = new javax.swing.JLabel();
        addCar_btn3 = new javax.swing.JButton();
        downPayment_txt1 = new javax.swing.JTextField();
        downPayment_txt2 = new javax.swing.JTextField();
        downPayment_txt3 = new javax.swing.JTextField();
        downPayment_txt4 = new javax.swing.JTextField();
        mileage_lbl1 = new javax.swing.JLabel();
        downPayment_txt6 = new javax.swing.JTextField();
        jComboBox1 = new javax.swing.JComboBox();
        year_lbl1 = new javax.swing.JLabel();
        bottomMenu_pnl = new javax.swing.JPanel();
        addCar_btn2 = new javax.swing.JButton();
        addCar_btn1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        saleCarGroup.setBorder(javax.swing.BorderFactory.createTitledBorder("Add Used Car Trade In"));
        saleCarGroup.setPreferredSize(new java.awt.Dimension(450, 107));

        mileage_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        mileage_lbl.setText("Mileage:");

        listPriceDisplay_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        listPriceDisplay_lbl.setText("Calc Value");

        model_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        model_lbl.setText("Model:");

        make_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        make_lbl.setText("Make:");

        vin_txt.setFont(vin_txt.getFont().deriveFont(vin_txt.getFont().getSize()-1f));
        vin_txt.setText("Enter VIN");

        color_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        color_lbl.setText("Color:");

        year_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        year_lbl.setText("Year:");

        listPrice_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        listPrice_lbl.setText("Value:");

        addCar_btn3.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        addCar_btn3.setText("Get Used Car Value");

        downPayment_txt1.setFont(downPayment_txt1.getFont().deriveFont(downPayment_txt1.getFont().getSize()-2f));
        downPayment_txt1.setText("Year");

        downPayment_txt2.setFont(downPayment_txt2.getFont().deriveFont(downPayment_txt2.getFont().getSize()-2f));
        downPayment_txt2.setText("Make");

        downPayment_txt3.setFont(downPayment_txt3.getFont().deriveFont(downPayment_txt3.getFont().getSize()-2f));
        downPayment_txt3.setText("Model");

        downPayment_txt4.setFont(downPayment_txt4.getFont().deriveFont(downPayment_txt4.getFont().getSize()-2f));
        downPayment_txt4.setText("Color");

        mileage_lbl1.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        mileage_lbl1.setLabelFor(jComboBox1);
        mileage_lbl1.setText("Condition:");

        downPayment_txt6.setFont(downPayment_txt6.getFont().deriveFont(downPayment_txt6.getFont().getSize()-2f));
        downPayment_txt6.setText("Mileage");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-1", "-0", "1" }));

        year_lbl1.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        year_lbl1.setText("VIN:");

        javax.swing.GroupLayout saleCarGroupLayout = new javax.swing.GroupLayout(saleCarGroup);
        saleCarGroup.setLayout(saleCarGroupLayout);
        saleCarGroupLayout.setHorizontalGroup(
            saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(saleCarGroupLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(year_lbl)
                    .addComponent(year_lbl1)
                    .addComponent(listPrice_lbl))
                .addGap(18, 18, 18)
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addComponent(vin_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(addCar_btn3))
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(downPayment_txt1, javax.swing.GroupLayout.DEFAULT_SIZE, 45, Short.MAX_VALUE)
                            .addComponent(listPriceDisplay_lbl))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(saleCarGroupLayout.createSequentialGroup()
                                .addComponent(make_lbl)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(downPayment_txt2, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(saleCarGroupLayout.createSequentialGroup()
                                .addComponent(model_lbl)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(downPayment_txt3, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(saleCarGroupLayout.createSequentialGroup()
                                .addComponent(color_lbl)
                                .addGap(12, 12, 12)
                                .addComponent(downPayment_txt4, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(mileage_lbl1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(saleCarGroupLayout.createSequentialGroup()
                                .addComponent(mileage_lbl)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(downPayment_txt6, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(19, 19, 19)))
                .addGap(23, 23, 23))
        );
        saleCarGroupLayout.setVerticalGroup(
            saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(saleCarGroupLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(vin_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(addCar_btn3)
                    .addComponent(year_lbl1))
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(downPayment_txt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(year_lbl))
                        .addContainerGap(37, Short.MAX_VALUE))
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(make_lbl)
                                .addComponent(downPayment_txt2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(saleCarGroupLayout.createSequentialGroup()
                                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(mileage_lbl1)
                                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(downPayment_txt4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(color_lbl))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(downPayment_txt6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(mileage_lbl)
                                    .addComponent(downPayment_txt3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(model_lbl)
                                    .addComponent(listPrice_lbl)
                                    .addComponent(listPriceDisplay_lbl))))
                        .addContainerGap())))
        );

        getContentPane().add(saleCarGroup, java.awt.BorderLayout.CENTER);

        addCar_btn2.setFont(new java.awt.Font("Tahoma", 0, 8));
        addCar_btn2.setText("Cancel");
        bottomMenu_pnl.add(addCar_btn2);

        addCar_btn1.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        addCar_btn1.setText("Save Used Car");
        bottomMenu_pnl.add(addCar_btn1);

        getContentPane().add(bottomMenu_pnl, java.awt.BorderLayout.SOUTH);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new AddTradeInLine().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addCar_btn1;
    private javax.swing.JButton addCar_btn2;
    private javax.swing.JButton addCar_btn3;
    private javax.swing.JPanel bottomMenu_pnl;
    private javax.swing.JLabel color_lbl;
    private javax.swing.JTextField downPayment_txt1;
    private javax.swing.JTextField downPayment_txt2;
    private javax.swing.JTextField downPayment_txt3;
    private javax.swing.JTextField downPayment_txt4;
    private javax.swing.JTextField downPayment_txt6;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel listPriceDisplay_lbl;
    private javax.swing.JLabel listPrice_lbl;
    private javax.swing.JLabel make_lbl;
    private javax.swing.JLabel mileage_lbl;
    private javax.swing.JLabel mileage_lbl1;
    private javax.swing.JLabel model_lbl;
    private javax.swing.JPanel saleCarGroup;
    private javax.swing.JTextField vin_txt;
    private javax.swing.JLabel year_lbl;
    private javax.swing.JLabel year_lbl1;
    // End of variables declaration//GEN-END:variables

}
